package com.liushao.aopann;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @program: untitled
 * @ClassName BookProxy
 * @description: 增强类
 * @author: 刘庆东
 * @create: 2024−11-28 10:40
 * @Version 1.0
 **/
@Component
@Aspect
//@Order(3)
public class BookProxy {
    //后置通知 (返回值通知) 如果是after代表最终通知
    @AfterReturning(value = "execution(* com.liushao.aopann.Book.show(..))")
    public void after(){
        System.out.println("AfterReturning.....");
    }

}
